package com.zzccyy.jpdemo.bean

/**
 * 日期信息封装Bean
 */
class DateInfo {
    // Getter和Setter方法
    @JvmField
    var date: String? = null // 日期，格式：yyyyMMdd
    @JvmField
    var weekDay: String? = null // 星期几，格式：周几
    @JvmField
    var chineseDate: String? = null // 中文日期，格式：yyyy年M月d日
    var dayOffset: Int = 0 // 相对于起始日期的天数偏移

    @JvmField
    var isSelect: Boolean = false

    // 构造函数
    constructor(date: String?, weekDay: String?, chineseDate: String?, dayOffset: Int) {
        this.date = date
        this.weekDay = weekDay
        this.chineseDate = chineseDate
        this.dayOffset = dayOffset
    }

    // 无参构造函数
    constructor()

    override fun toString(): String {
        return "DateInfo{" +
                "date='" + date + '\'' +
                ", weekDay='" + weekDay + '\'' +
                ", chineseDate='" + chineseDate + '\'' +
                ", dayOffset=" + dayOffset +
                '}'
    }
}